package com.dc.project.service;

import com.dc.common.model.BaseModel;
import com.dc.project.model.StudentUser;
import com.dc.project.model.StudentUserInfo;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description: StudentUserService
 * @Author: ChenXueLi
 * @Date: 2018-05-07 14:25
 */
public interface StudentUserService {

    /**
     * 新增学生用户（测试用）
     * @param studentUser
     * @param baseModel
     * @param request
     * @return
     */
    BaseModel addStudentUser(StudentUser studentUser, BaseModel baseModel, HttpServletRequest request) throws Exception;

    /**
     * 学生用户登录
     * @param studentUser
     * @param baseModel
     * @param request
     * @return
     */
    BaseModel login(StudentUser studentUser, BaseModel baseModel, HttpServletRequest request) throws Exception;

    /**
     * 学生用户修改密码
     * @param studentUser
     * @param baseModel
     * @param request
     * @return
     */
    BaseModel updateStudentUserPwdByAccount(StudentUser studentUser, BaseModel baseModel, HttpServletRequest request) throws Exception;

    /**
     * 学生用户修改个人信息
     * @param studentUserInfo
     * @param baseModel
     * @param request
     * @return
     */
    BaseModel updateStudentUserInfo(StudentUserInfo studentUserInfo, BaseModel baseModel, HttpServletRequest request) throws Exception;

}
